<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<title th:utext="#{title.home}"></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Dhrubo" />

<!-- Le styles -->
<link rel="stylesheet" type="text/css" media="all"
	href="css/bootstrap.css" th:href="@{/resources/css/bootstrap.css}" />
<style type="text/css">
body {
	padding-top: 60px;
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

@media ( max-width : 980px) {
	/* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>
<link rel="stylesheet" type="text/css" media="all"
	href="css/bootstrap-responsive.css"
	th:href="@{/resources/css/bootstrap-responsive.css}" />

</head>

<body>

	<div th:substituteby="fragments/userheader :: navbar"></div>

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span6">
				<ul class="breadcrumb">
					<li><a href="home" th:utext="#{home}"></a> <span class="divider">/</span></li>

					<li class="active" th:utext="#{activitystream}"></li>
				</ul>
			</div>
			<div class="span6">
				<div class="btn-group pull-right">
					<a class="btn btn-primary" href="home"  th:utext="#{refresh}"></a> 
				</div>
			</div>
		</div>

		<div class="row" th:each="a, rowstat : ${activities}" th:with="c=${a.createdDate.toDate()}">
			
				<div class="span12">

					<blockquote>

						<div class="alert alert-info" th:utext="${a.activityDetails}">

						</div>

						<small><i class="icon-user"></i> by <a th:href="@{/viewuser(user=${a.activityBy.id})}"
							th:text="${a.activityBy.name}">John</a> | <i
							class="icon-calendar"></i> <span th:text="${beans.pretty.format(c)}"></span>
							<!-- 
							| <i class="icon-comment"></i> <a href="#">0 Comments</a>
							 -->
						</small>	 
					</blockquote>


				</div>

			

		</div>
		<hr />

	</div>
	<!--/.fluid-container-->

	<div th:substituteby="fragments/userheader :: footer"></div>

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="js/jquery.js" th:src="@{/resources/js/jquery.js}"></script>

	<script src="js/bootstrap-dropdown.js"
		th:src="@{/resources/js/bootstrap-dropdown.js}"></script>

	<script src="js/bootstrap-alert.js"
		th:src="@{/resources/js/bootstrap-alert.js}"></script>

</body>
</html>
